﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IMailServices" in both code and config file together.
    [ServiceContract]
    public interface IMailServices
    {
        [OperationContract]
        void DoWork();

        [OperationContract]
        bool SendEmail(Object param, String DestinationFolder);

        [OperationContract]
        IList<String> ReadMail(string Username, string Password, string KodeWarehouse, out string errmessage);

        [OperationContract]
        void ReceiveAll(out string err, string KodeWarehouse);

        [OperationContract]
        String Receive(string tipeTransaksi, String KodeWarehouse, out string path);

        [OperationContract]
        bool  ReceiveTrue(string subject, string localpath, out String errMessage);

    }
}
